home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14016 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  925 b 

  1. Path: news.erg.cuhk.hk!khtsang
  2. From: khtsang@cs.cuhk.hk (Fan.. ... ...)
  3. Newsgroups: cs.forum,cuhk.se.3420,comp.lang.c
  4. Subject: Re: Help: a very segmentation fault!
  5. Followup-To: cs.forum,cuhk.se.3420,comp.lang.c
  6. Date: 11 Apr 1996 10:44:38 GMT
  7. Organization: Engineering Faculty CUHK
  8. Message-ID: <4kinqm$hnt@eng_ser1.erg.cuhk.hk>
  9. References: <4ki7gu$bgc@eng_ser1.erg.cuhk.hk>
  10. NNTP-Posting-Host: sun29.cs.cuhk.hk
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. I'm a good man (mfchan@cs.cuhk.hk) wrote:
  14. > This is really the most strange thing I come across in C programming.
  15.  
  16. > main()
  17. > {
  18. >    char block[82];
  19. >    fp2 = fopen("fool", "r+b");
  20. >    writeblock(fp2, 0, OVERFILE, block);
  21. > }
  22.  
  23. > Need your help. Million Thks!
  24.  
  25. I've tried the program...  That's okay... except some syntax error...
  26.  
  27. One more thing...  What is your platform??  There's no "r+b" mode for
  28. fopen on unix systems...  Default mode is binary for all files.
  29.  
  30. Ah Fan...
  31.  
  32.